]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Load extensions as late as possible
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 27 Aug 2012 19:57:54 +0000 (16:57 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 27 Aug 2012 20:40:07 +0000 (17:40 -0300)
Since we want extensions to be able to be loaded at any time, that
means that the startup case should be as close to the live-time
install case.

https://bugzilla.gnome.org/show_bug.cgi?id=682822

js/ui/main.js

index adfaae2e4ae5d27ceb09aed5b3ad2243838e63ca..73112f33b8c3b0b6a9d4fd29e9d29c6463cd598f 100644 (file)
@@ -233,11 +233,6 @@ function start() {
         global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT,
                                                 false, -1, 1);
 
-    if (sessionMode.allowExtensions) {
-        ExtensionDownloader.init();
-        ExtensionSystem.loadExtensions();
-    }
-
     if (sessionMode.hasRunDialog) {
         Meta.keybindings_set_custom_handler('panel-run-dialog', function() {
            getRunDialog().open();
@@ -286,6 +281,11 @@ function start() {
     global.screen.connect('restacked', _windowsRestacked);
 
     _nWorkspacesChanged();
+
+    if (sessionMode.allowExtensions) {
+        ExtensionDownloader.init();
+        ExtensionSystem.loadExtensions();
+    }
 }
 
 let _workspaces = [];